home *** CD-ROM | disk | FTP | other *** search
- On 9 Apr 1997, Hakan Venderlof wrote:
-
- > When I divide something like this:
- >
- > 1717680/1000000
- >
- > I get answer 1 but I want it to be 1.7
-
- Use floats in the calculation:
- 1717680.0/1000000.0
-
- If your numbers are integers to begin with, multiply them with 1.0 or add
- 0.0.
-
- --
-
- Branko Collin http://www.xs4all.nl/~collin
- collin@xs4all.nl http://www.kun.nl/undans/members/branko.html
- "Quote removed for safety reasons"
-
-
-